package com.arouter.demo.searchmodule.uri;

import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.facade.callback.NavCallback;
import com.alibaba.android.arouter.launcher.ARouter;


public class SchemeFilterActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // 直接通过ARouter处理外部Uri

        Uri uri = getIntent().getData();

        String url = uri.toString();
        Log.e("Scheme==>>", "url :" + url );
        ARouter.getInstance().build(uri)
               .navigation(this, new NavCallback() {
                   @Override
                   public void onArrival(Postcard postcard) {
                       finish();
                   }
               });




    }
}
